import request from '@/utils/request'

// 查询采购质检列表
export function listRyQuality(query) {
  return request({
    url: '/purchase/ryQuality/list',
    method: 'get',
    params: query
  })
}

// 查询采购质检详细
export function getRyQuality(id) {
  return request({
    url: '/purchase/ryQuality/' + id,
    method: 'get'
  })
}

// 新增采购质检
export function addRyQuality(data) {
  return request({
    url: '/purchase/ryQuality',
    method: 'post',
    data: data
  })
}

// 修改采购质检
export function updateRyQuality(data) {
  return request({
    url: '/purchase/ryQuality',
    method: 'put',
    data: data
  })
}

// 删除采购质检
export function delRyQuality(id) {
  return request({
    url: '/purchase/ryQuality/' + id,
    method: 'delete'
  })
}
